package com.daiyang.lottery.service;

import com.daiyang.lottery.controller.param.DrawPrizeParam;
import com.daiyang.lottery.controller.param.ShowWinningRecordsParam;
import com.daiyang.lottery.dao.dataobject.WinningRecordDO;
import com.daiyang.lottery.service.dto.WinningRecordDTO;
import jakarta.validation.constraints.NotNull;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface DrawPrizeService {
    void drawPrize(DrawPrizeParam param);

    Boolean checkDrawPrizeParam(DrawPrizeParam param);

    List<WinningRecordDO> saveWinnerRecords(DrawPrizeParam param);


    void deleteRecords(@NotNull(message = "活动id不能为空") Long activtyId, @NotNull(message = "奖品id不能为空") Long prizeId);

    List<WinningRecordDTO> getRecords(ShowWinningRecordsParam param);
}
